package demo1;

public class Test {
    public static void main(String[] args) {
            Computer computer = new Computer();
            computer.powerOn();
            Mouse mouse= new Mouse();
            KeyBoard keyBoard= new KeyBoard();
            computer.useService(mouse);
            computer.useService(keyBoard);
            computer.powerOff();
    }
}
